package com.imooc.DistributeDb.dao;

import com.sun.tools.javac.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * @Author: zhangshao
 * @Since: 2024/4/12 09:25
 */
@Mapper
public interface UserDao {
	@Insert("insert into t_user_info(phone,name) values(#{phone},#{name})")
	void insertUser(@Param("phone")String phone,@Param("name")String name);

	@Select("select * from t_user_info where id = #{id}")
	Map<String,Object> selectById(@Param("id")Long id);

}
